import {
    HTTP,
} from "@/plugins/axios";
// 获取
export const GetUserList= data => HTTP(`/admin/user`, data, "GET");
// // 根据ID搜索
export const GetUserById= data => HTTP(`/admin/user/${data.search}`, data.page, "GET")
// // 根据用户名搜索
export const GetUserByName= data => HTTP(`/admin/user/nickName/${data.search}`, data.page, "GET")
// // 添加
export const AddUserList= data => HTTP(`/admin/publish/user`,data,"POST");
// // 删除
export const DeleteUserList= data => HTTP(`/admin/delete/user/${data}`, data, 'DELETE')
// // 修改
export const UpdateUserList= data => HTTP(`/admin/update/user`, data, 'PUT')

export const UpdateUserPassword = data => HTTP(`/admin/update/password`, data, 'PUT')

export const GetRoleList =  data => HTTP(`/admin/search/role_id`,data,"GET");
